import 'package:json_annotation/json_annotation.dart';

part 'base_model.g.dart';

@JsonSerializable()
class BaseModel {
  @JsonKey(name: 'msg')
  String msg;
  @JsonKey(name: 'code')
  String code;

  BaseModel(this.code, this.msg);

  factory BaseModel.formJson(Map<String, dynamic> json) =>
      _$BaseModelFromJson(json);
}
